<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/printer/printerRecord.js"></script>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<br>' +
            '<ol class="breadcrumb">' +
            '<li>' +
            '<a>打印机</a>' +
            '</li>' +
            '<li>' +
            '<strong>打印记录</strong>' +
            '</li>' +
            '</ol>';
    });

    var s_reSet_h = 'hidden';
</script>

<shiro:hasPermission name="system:printerRecord:reSet">
    <script type="text/javascript">
        s_reSet_h = '';
    </script>
</shiro:hasPermission>


<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body" style=" overflow-y:hidden;">

                <div class="fixed-table-toolbar">
                    <shiro:hasPermission name="system:printerRecord:print">
                    <div class="pull-right search col-md-2">
                            <button type="button" class="btn btn-success" onclick="printerRecord.print()">凭空打印订单
                            </button>
                    </div>
                    </shiro:hasPermission>
                    <shiro:hasPermission name="system:printerRecord:export">
                        <div class="pull-right search col-md-2">
                            <button type="button" class="btn btn-success" onclick="printerRecord.exportFile()">导出
                            </button>
                        </div>
                        <div class="pull-right search col-md-1 ">
                            <input id="printSize" type="text" min="0" max="99999" class="form-control"
                                   placeholder="导出条数" width="100px" maxlength="5" onkeyup="value=value.replace(/[^\d]/g,'')">
                        </div>
                    </shiro:hasPermission>
                </div>
                <div class="fixed-table-toolbar">
                    <div class="pull-right search col-md-2">
                        <button class="btn btn-success" onclick="printerRecord.reLoad()">查询</button>
                    </div>
                    <div class="pull-right search col-md-2 ">
                        <input id="carNum" type="text" class="form-control"
                               placeholder="车牌号" width="200px" autocomplete="off">
                    </div>
                    <div class="pull-right search col-md-2 ">
                        <input id="priNo" type="text" class="form-control"
                               placeholder="打印编号、订单号" width="200px" autocomplete="off">
                    </div>
                    <%--<div class="pull-right search col-md-2">--%>
                        <%--<input id="stationName" type="text" class="form-control"--%>
                               <%--placeholder="桩群名" width="200px" autocomplete="off">--%>
                    <%--</div>--%>
                    <div class="pull-right search col-md-2">
                        <select id="stationName" name="stationName" class="form-control" placeholder="桩群名称">
                            <option value="" selected="selected">桩群名称</option>
                            <c:forEach items="${elecStations}" var="bean">
                                <option value="${bean.stationName}">${bean.stationName}(${bean.address})
                                </option>
                            </c:forEach>
                        </select>
                    </div>
                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">
    printerRecord.init();
</script>
</body>
</html>